#include "KPF_DataManager.h"

#include <iostream>
using namespace std;

#include "KPF_ListenerSession.h"

#include "log.h"

#include "RunTime.h"

class CTestListener : public KPF_ListenerSession
{
public:
	CTestListener( const int8_t *pIP, const int16u_t iPort, const int16u_t iLocalPort )
		: 	KPF_ListenerSession( pIP, iPort, iLocalPort )
	{

	}
	
protected:

private:

};

int main( int argc, char **argv )
{

	
	cout<<"main:-------------->"<<endl;
	
	KPF_ListenerSession *pTestListener = new CTestListener( (const int8_t *)"225.0.0.37", 12345, 6000 );
	
	if ( pTestListener )
	{
		char pWords[1024] = { 0x00, };
				
		while ( fgets( pWords, 1024, stdin ) )
		{

		//	pTestListener->handle_output( pTestListener->getSocket(), (const int8u_t *)pWords, strlen(pWords) );			

		}
	}
		
	while ( 1 )
		os_sleep( 1000 * 1000 * 60 );
		
	return 0;	
}

static CRunTime fg_RunTime;
